package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.NppDao;
import io.renren.modules.generator.entity.NppEntity;
import io.renren.modules.generator.service.NppService;



@Service("nppService")
public class NppServiceImpl implements NppService {
	@Autowired
	private NppDao nppDao;
	
	@Override
	public NppEntity queryObject(Integer nppId){
		return nppDao.queryObject(nppId);
	}
	
	@Override
	public List<NppEntity> queryList(Map<String, Object> map){
		return nppDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return nppDao.queryTotal(map);
	}
	
	@Override
	public void save(NppEntity npp){
		nppDao.save(npp);
	}
	
	@Override
	public void update(NppEntity npp){
		nppDao.update(npp);
	}
	
	@Override
	public void delete(Integer nppId){
		nppDao.delete(nppId);
	}
	
	@Override
	public void deleteBatch(Integer[] nppIds){
		nppDao.deleteBatch(nppIds);
	}

	@Override
	public List<NppEntity> yearList(Map<String, Object> map){
		return nppDao.yearList(map);
	}

	@Override
	public int yearTotal(Map<String, Object> map){
		return nppDao.yearTotal(map);
	}
	
}
